package userchannellogic

import (
	"context"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/model/user/channel"

	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/svc"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/rpc"

	"github.com/zeromicro/go-zero/core/logx"
)

type UserEWalletsInsertLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewUserEWalletsInsertLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UserEWalletsInsertLogic {
	return &UserEWalletsInsertLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *UserEWalletsInsertLogic) UserEWalletsInsert(in *rpc.UserEWalletsInsertRequest) (*rpc.UserEWalletsInsertResponse, error) {
	return channel.NewEWalletModel(l.ctx, l.svcCtx.Db).UserEWalletsInsert(in)
}
